package qhLoading 
{
	
	import qhLoading.info.*;
	import qhLoading.loaders.*;
	
	/**
	 * ...
	 * @author gcxk721
	 */
	public class FileType 
	{
		
		public static const JPG : String = "JPG";
		
		public static const PNG : String = "PNG";
		
		public static const GIF : String = "GIF";
		
		public static const GDO : String = "GDO";
		
		public static const SWF : String = "SWF";
		
		public static const CLIENT : String = "CLIENT";
		
		public static const GXA : String = "GXA";
		
		public static const GXB : String = "GXB";
		
		private static var _classRef:Object = { JPG:ImageLoader, PNG:ImageLoader, GIF:ImageLoader, 
		GDO:DataLoader, SWF:SwfLoader, CLIENT:DataLoader, GXA : DataLoader, GXB : DataLoader};
        private static var _classInfoRef:Object = { JPG:ImageInfo, PNG:ImageInfo, GIF:ImageInfo, 
		GDO:DataInfo, SWF:SwfInfo, CLIENT:DataInfo, GXA : GxaInfo, GXB : GxbInfo};

        public function FileType()
        {
			
        }

        public static function getLoaderByType(fileName:String) : Class
        {
            return _classRef[fileName];
        }

        public static function getLoaderInfoByType(fileName:String) : Class
        {
            return _classInfoRef[fileName];
        }
		
	}

}